<div class="slider-container">
	<div class="container">
		<div class="row">
			<div class="col-sm-10 col-sm-offset-1 slider">
				<div class="flexslider">
					<ul class="slides">
						<?php $args = array(
							'posts_per_page'   => 4,
							'offset'           => 0,
							'category_name'    => 'slider',
							'orderby'          => 'post_date',
							'order'            => 'DESC',
							'post_type'        => 'post',
							'post_status'      => 'publish',
							'suppress_filters' => true
						);

						$posts = get_posts($args);

						foreach ($posts as $post) : setup_postdata($post); ?>
							<?php $url = wp_get_attachment_url(get_post_thumbnail_id($post->ID));?>
							<li data-thumb="<?php echo $url;?>">
								<?php  has_post_thumbnail() ? the_post_thumbnail('large') : '';?>
								<div class="flex-caption">
									<?php echo get_post_field('post_content', $post->ID); ?>
								</div>
							</li>-->
						<?php endforeach;
						wp_reset_postdata();?>
					</ul>
				</div>
			</div>
		</div>
	</div>
</div>